<template>
    <div class="card">
        <div  class="modal">
            <p>Hello from the modal!</p>
            <button @click="$emit('openFn')">Close</button>
        </div>
    </div>
</template>

<script>
export default {

}
</script>

<style>
.card{
    position: absolute;
    top: 0;
    left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
}
.modal{
    width: 300px;
    height: 300px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%)

}
</style>
